update path and filename