better handle of public file