support relative path in 's argument and fix a bug