linking: mv code to external .cfg files