making yapg system independent