add postfile method