added getEnterShell() function