fixed logic in smart spawns. added var smartUserAgent