strips the bad characters
api looper now ends when complete
added debugging to aamasterUpdate