removes process dependent code