add mask loading