added piface common functions in for consistency with emulator