add the beginning spider code