fixed support for localhost environments