adding demo and plugin logic