fixes towards risc-v user programs running