start implementing macroses support