cleaning up module exports, adding __cache method