initial support for copy-dependencies and unpack-dependencies

needs lot of clean up