first stab at proper app... not working yet