updated liquid class to work with most recent layouts