modified the src plugin slightly to fix bug