simplify resource libraries, document resource libraries and copy deployment