initial implementation of run plugin