bug fixes in package