random targets
error in line 505. fixed
key error fix
some other bugs...