fix push file implementation