added additional checks
still doesn't work.  going to sleep
finally fixed it, yeah baby