you have a race here with the `err`