added configuration obj for max size and orientation