placed dev_init call in allocate task