shitty attempt to make this work on the server