update for foreman 1.4.1 and real api v2