added option for explicit base path