removed running instance check from cli mode
fixed --window in cli mode