tasks of substituted users can be now completed correctly
added caching for substitutions
assignFromQueue changes