some fix for piface integration