added device ready and plugin mock