adding spider code