some more work on package functions