implemented support for simple files