add new init function. convenient restmq called.