load portable library directly from json file