fix variables and default settings