add some shell functions