check for global variables in init or they are overwritten by defaults