rewrite BASE_PATH