fixed certificate problem and switched to raw