make pathogen compatible

tested, works for me. Ref: [webinos Jira issue API-13](http://jira.webinos.org/browse/API-13)