added tryonly option