custom logging functions
switch to custom logging functions