change setting handling in the package. needs testing