first working version of lunch. ugly code though.