fixed tt for server side, changed exports.environment