complete spider logic