fix for constructor, exports in batch