fix all and create legal plugin