standardize plugin to accept arguments