update lib and add design