Detect prefix from form

see #7