# added support for basic encoding