make it as lib