move globals definition to main file and remove redefinitions.