added path utils, fixed a bug in the alert popup