some warning fixes