add new more efficient encoder code not using strings instead shorts