make resourceByPath work in non-default module