cf code and handle script