dropping function from restricted shell