put basePath in a string