added secure connection