changed syntax to match v0.4 and added Compat dependency for v0.3 compatability