added funcentry and exits