target length interface
read libs from lib