added should spawn check
added dep