added some features

- support for Frence
- check if there is an error