changed to static file open method