small fix for integers in ftl, improved error handling