change interface: use 1|0 instead of true|false