added module exports to lib