made setting of positions dependent on task state (and not sim state)