residency obligations