fix warnings and errors.