filthy hack to try cast instead of call for kestrel writes