fixed an issue w/ the spawn .map() function