added possibility to pass file paths as arguments