fixed some error log stuff