added simple and advanced modes