updated convert script to work