move crawler to use Connection class