Propgated metadata in a smarter way when doing uploads

closes #14