added some helper method to core.package