updated code to reste ahoy instance