corrected and added log to prevent path traversal attack