php update with correct metadata / use flags