visual state, merge common code
remove opyright header from config file
remove over complex code