add check permissions for export, close #20 & start import logic