handle external edition