First setup to convert this all to cake3. Most of the things have been completely rewritten or will be soon