add logging in instructions