fixes for when using dcordova