added initializer to ensure the base path exists