made globals static in slug.c