changed some warnings to be debug messages instead
fixed typo