write dependencies into separate file