coding lib+exe. code separated. no use of support.h in lib.