added lib scripts