fix error in case the temp key is empty
add http server