small fixes for rapache