function to add resources after init