added base plugin and normalize functions