hopefully final attempt at pkg generation