clean up shk.c