clean up ao helpers, make sub scripts more friendly to other projects