macros for REPL and macro import