stripped unnecessary code from spaceapi plugin