maybe we should do this on the server side? then you only need to send it once? or if we do it here we don't need to do it above?