wow don't we have something like this in core? or somewhere?