change mouse id and procedure id to integers, adjust supporting methods to match