lots of updates to ag loading script
Merge pull request #414 from douginator2000/wwwadmin

lots of updates to ag loading script