cd and isBackgroundProcess