handler for non-json req