adding attributes option to get file attributes by demand