How to coordinate Internet applications based on mobile agents