working with hex enc lib