remove all of apr things except atomic parts