bind server to localhost, properly