added cleanup function to ghost_init and modified CF template to use VPC