debug for randomhandler added