encapsulate ma shitty classes so minification/uglification works