make sure instance has been set