adding encoder file