starting export logic