moving global macro for errors