trying to get rid of mixed content problem