add macro to write built-in modules