improved overload selection, more file methods