changed regex to use /A and /z instead of ^ or $
scopes need lambda as second argument
fix more regexes
readd route that was taken out