fixed appfor bug+timestamp bug