tern file has to be in lib?