added Constant BASE_DIR to ensure the right path is used regardles from where the script is started