move all consts to one file, add gsm-specific functions