added small check for lib2patches