custom libraries code hooked up