widen range for mamp domain lookup and improve logic