perhaps use autospec or similar