place main object in package and name dynamically