package updates and optimizations