initial version that should fully work with api key from config