fixed list error in openfiles; refactored myapp