refactored process launching