fixing deprecated import
fixing task availability and stats