added repository functions; modified spider module