get simple version to work, with caches and regex