added locking possibilities, but scheduler is needed for completion