updated syntax for v0.4 and added Compat requirement