implementing pushFile