allow Type for define plugin to be string