proper package onload

set settings in pacakge onload