fixes and added functions for AGU