ags registration prototype