adding basic plugin functionality