implemented overwrite feature in queue and otehr stuff