core: refactoring wibble
core: unify result types of alts