added fg and sending sigtstp correctly