added static imports and some logic to get file path only of choosen