fix Globals get_config bug,rewrite singleton use reflection,fix security bugs
fix security & input bugs