make returnvalue to OS work