some base cleanup, pasted 0.5 comprowssor script