stupid byte string stuff