openfiles adapted to the new interface with Promises provided by ProjectManager