added support for escape sequences