added support for omitting slash on prefix option