will add some more functions to add resources after init