small fixes for usermode stuff