version 2 works and does not result in the waiting for localhost problem