made crawler work and add initial api.