fix paths, add zencoding hook