send 400 on undefined
simplification in syntax