check handlers do we need to export functions in some special way? startup/shutdown hook to inform other modules, that they should free/register handlers?