building initialization logic for agents in main() function.