add encoding property for compiler