changed bool representation to int in json requests