add deprecation layer

Should help with #33.

Not tested yet though.