added dev mode to show extra messages.