Add footer and fix fullpath bug