catch process in console