fixes for undefined due to async rest.get