fix path expansion to users home dir
actually use loader