moved procedures around in megatest.scm