append check file type by path method
better const field name