only load lib if not empty