fixed public dir and remove tmp dir