use config for a few var that were hardcoded