move records and macros to hrl