add source for xystem.c, should have been added sooner