optimize spider