[brick breaker] improved resource loading and API