small changes + added mode string
added mode option for different controllers