prevent api calls mor often than once per second (fixes #46)