added networking - now works with spotapi