streamlining callbacks, updating dist