added deps
fixed bad fn order