change log function
fix relative path bug
fix change directory 500 error bug!!!