rename basePath to relativeTo. Closes #8