add localhost checks