make static resources relative