safe stuff for shell scripts