adds support for custom paths