moved tasks out to api module, added strategies