updated poweroutlet model to add max_length param