change booleans to native ruby and work on invoke