fixed logging for reload function