varibles moved from header to source file for compatibility