cleaning lib and config