server part added (now just handles static)