support for hardware encoding added