Fixed some but and add the magic method for the path conditions