open in the correct mode