update origin and res folder