refactor cral spider