remove unused method
add proper filepath pattern
respect ~ in paths