changed fg printing and added job output redirect