fixed up syslib a bit, should be done