some workarounds to make it compilable