functionality for handling package libraries