added packages based on Firefly sample
updating the code to match API changes