add a couple basic file operation helpers