added hotlinking support