add resources to library