added multple pet support