added multi-resolution support