added lib/ to load path. changed require patterns as well.