commiting tested encoder script