simplify path check and example building