might not be pretty but it is not a hack either