add handlers and code sections