make internal library for testing purposes