added some warnings.