Change registering file type in according to api changes