choose mode at startup