starting with AP search
made APs to work
added regexps