made setting of positions dependent on task state (and not sim state)
chnaged all logging messages to base::logging