fix declaration of checkremote lib