template update
add file endpoints