modified to open any file and buffer with tabopne