fix path prefix, fix type, add bashify method