first hack of a custom handler. based off the standard python ones