ag patch 3

ag modification by Snelf