changing escaping and exposing static functions for other plugins