initial encode support