added resolution support