would be good to extract this out into core brooklyn