added some code to utilize the beginnings of the resource library