added secure option