added flag block
couple item changes
testing logs