add basic file control methods / bugfix