changed to support package import (better R citizen)