fixed several issues causing code to not compile, not a perm fix but will do until ags131 is back