added secure option to module config