updated the syntax to allow a different typename from the pkgname