added booleans support + beginning of while loop