general script for all packages