fixed convert file being empty
misc fixes