rework runtime assertions to reduce dependency