tweaking up the conversion script