split library from app