modification for shell running