updated server to properly server files over https