refactored export statement, added listen callback.