added support for nocheckcertificate option