further code cleanup. implemented shared variables as included module (config)