fixed task constructor so it's possible to add location