nicer class export syntax; avoid dependency problems fixes #165