creating the "dogloader"