added whitelist parsing for startswith routing