runtime: WIP error handling