stab at fixing up deploy plugin