removing static, moving main plugin class