slowly turning this into a webapp