frontend.c - cleanups