actually check that mode is specified. Its required