Adding file command
fixes for backwards compatible with 5.3