updated some file input, it should work now - maybe some tweaking needed