added status handler for custom use