properly use BASEPATH in global config, created shared file for crons