small fixes for jpuri code