made BASE_PATH automatic

using magic_constant