attempting to make mapbox directives a little more abstract