added error on no path or username