separate library from demo module