WIP level format extensions (unfinished)

started this a while ago but then left it alone for a long time and now
it's being (probably) finished