prepend new items to the stack rather than append. closes #923