reformat imports+exports for script plugin