now runs fg and bg commands