bypass decoder in scala