fixing up process variables stuff