replaced '~' with '$HOME'