improvements to package 4