added logging to spider