enhancements to apt scripts