add macro for genome copying, cleanup