added run mode