some warning checks