updated check and config