change object in callback

use case may be to initialize each module and put result in the object returned from the requireDirectory call