clean up module and library interface