apply pluging loader function