need to fix resources access when deployed