added functions to shell