add script to be called as hook to assing correct file metadata #141