fixed errors from copy

had some errors appear during the transition to a separate module