make agent work well