optional warning for end of main, $ gets replaced by list of keys