fixed migration issue
updated setup script for new agent