caroline's code on a fork of shareabouts main