add convertion script
some bug fix