fix for missing lib and updated rules