added fb error handling