rename dir option to baseUrl