add 'cmd' member for dict returned from extension function, which will executed after file opened