added some stuff for conditionals which isn't working yet
gfdsdfer' of https://github.com/moajohansson/IsaHipster