take filepath as argument instead of searching for it