moved plugin to seperate file