added graphis.c and removed from common