todo functions with working open file functionality