improvements to package and props constructors