got this mess working