better logic for faking an api